//
//  Fraction.h
//  02-Fraction
//
//  Created by dllo on 16/7/6.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface Fraction : NSObject
@property (nonatomic) NSInteger member;
@property (nonatomic) NSInteger denominator;


- (id)initWitnMember:(NSInteger)member denominator:(NSInteger)denominator;

- (NSInteger)gcdNumber:(NSInteger)member denominator:(NSInteger)denominator;
- (Fraction *)sumNumber:(Fraction *)fraction;

- (Fraction *)reduceNumber:(Fraction *)fraction;

- (Fraction *)rideNumber:(Fraction *)fraction;

- (Fraction *)divideNumber:(Fraction *)fraction;

- (NSComparisonResult)resultCompare:(Fraction *)fraction;

- (void)simplifyNumber;

@end
